﻿using System.Collections.Generic;

namespace cubeAdjustment
{

    internal class knownData
    {
        public double Error, sError, rError;
        public List<iPoint> pointDatas;
        /// <summary>
        /// 已知值
        /// </summary>
        /// <param name="Error"></param>
        /// <param name="sError"></param>
        /// <param name="rError"></param>
        public knownData(double Error, double sError, double rError)
        {
            this.Error = Error;
            this.sError = sError;
            this.rError = rError;
            this.pointDatas = new List<iPoint>();
        }
    }

    /// <summary>
    /// 已知点数据
    /// </summary>
    internal class iPoint
    {
        public string id;
        public double x, y;
        public iPoint(string id, double x, double y)
        {
            this.id = id;
            this.x = x;
            this.y = y;
        }
    }

    /// <summary>
    /// 观测数据
    /// </summary>
    internal class iObserve
    {
        public string testSiteNum;
        public List<oriData> originalDatas;
        public iObserve(string testSiteNum)
        {
            this.testSiteNum = testSiteNum;
            this.originalDatas = new List<oriData>();
        }
    }

    /// <summary>
    /// 照准点数据
    /// </summary>
    internal class oriData
    {
        public string id;
        public string type;
        public double value;
        /// <summary>
        /// 生成照准点数据
        /// </summary>
        /// <param name="id">ID值</param>
        /// <param name="type">类型</param>
        /// <param name="value">值</param>
        public oriData(string id, string type, double value)
        {
            this.id = id;
            this.type = type;
            this.value = value;
        }
    }
}
